<?php
/*
 * Created on 5 juin 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class Secure_CampaignController extends Zend_Controller_Action{
	
	  public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
    	$this->view->title = "Nouvelle campagne";
        $this->view->headTitle($this->view->title);
        $form = new Secure_Form_Campaign();
        $this->view->form = $form;
    }
    
    public function reportAction(){
    	$this->view->title = "Rapport de campagne";
        $this->view->headTitle($this->view->title);
        $form = new Secure_Form_Report();
        $this->view->form = $form;
    }
    
    public function addAction(){
    	$this->view->title = "";
    	$this->view->headTitle($this->view->title);
        $form = new Secure_Form_Campaign();
    	if ($this->getRequest()->isPost()) {
			$debut = stripslashes($this->_request->getPost('campaign_begin'));
			$fin = stripslashes($this->_request->getPost('campaign_end'));         
			$type = stripslashes($this->_request->getPost('campaign_type'));    
			$comment = stripslashes($this->_request->getPost('campaign_comment'));     
			$this->_helper->redirector('index');
		}
    }
    
}